<?php
require_once('php/class/mysql_table.class.php');
mail_usuario();
?>

<html>
    <?php include('include.header_admin.html'); ?>
    <body class="bodyadmin">
        
        <div id="usuario" align="center">
            
            <form id="frm_bp" name="frm_bp" method="post">
                <input type="hidden" id="ACCION" name="ACCION" value="0">
                <input type="hidden" id="id" name="id" value="0">
                <table class="marco">
                <tr>
                <td height="10%">
                <?php include('menu.php'); ?>
                </td>
                </tr>
                    <tr height='5%'>
			<td align="center" valign="button">
			    Registrar un Administrador en el sistema
			</td>
		    </tr>
                    <tr>
                        <td align="center" valign="middle">
                <div id="DATO_HIDE" style="display:none" style="width:90%">
                    <div id="DATO"></div>
                </div>
                <table class='formulario' border=0>
                <tr>
                    <td>Nombre</td>
                    <td><input type="text" id="nombre" name="nombre" class="validate['required','nodigit','length[1,20]']" value="<?php echo $nombre;?>"></td>
                </tr>
                <tr>
                    <td>Apellido</td>
                    <td><input type="text" id="apellido" name="apellido" class="validate['required','nodigit','length[1,20]']" value="<?php echo $apellido;?>"></td>
                </tr>
                <tr>
                    <td>Mail</td>
                    <td><input type="text" id="mail" name="mail" class="validate['required','email']" value="<?php echo $mail;?>"></td>
                </tr>
                <tr>
                    <td>Password</td>
                    <td><input type="password" id="password" name="password" class="validate['required','length[6,10]']" value="<?php echo $password;?>"></td>
                </tr>
                <tr>
                    <td>Confirmar Password</td>
                    <td><input type="password" id="password_r" name="password_r" class="validate['confirm[password]']" value="<?php echo $password_r;?>"></td>
                </tr>
                <tr>
                    <td>&nbsp;
                    </td>
                    <td>&nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <input type="button" value="Cancelar" onclick="javascript:window.location='list_admin.php';">
                    </td>
                    <td align="left">
                        <input type="submit" id="submit" name="submit" value="Guardar">
                    </td>
                </tr>
            </table>
                        </td>
                    </tr>
                    <tr>
                    <td height="10%" valign="bottom" align="center">
                    <?php include('footer.php'); ?>
                    </td>
                    </tr>
                </table>
            </form>
            
        </div>
    </body>
</html>